home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 July: Mac OS SDK / Dev.CD Jul 97 SDK1.toast / Development Kits (Disc 1) / Installer SDK Cornucopia 1.0.2 / Script Examples / Rsrc Compare by Procedure / Makefile < prev    next >
Encoding:
Makefile  |  1996-09-23  |  2.0 KB  |  48 lines  |  [TEXT/MPS ]

  1. # To build this example, choose the "Build…" menu item from within
  2. # the "Build" menu in MPW. When asked for Program Name, type in the 
  3. # script name, in this case "Rsrc Compare Proc" ( without double quotes ) 
  4. # and press the Enter key. Be sure that the Current Working Directory
  5. # for MPW is set to the directory containing this example.
  6.  
  7. # To build the Debugger version of this example, choose the "Build…" 
  8. # menu item from within the "Build" menu in MPW. When asked for Program 
  9. # Name, type in the script name, in this case "Rsrc Compare Proc.debug" ( without 
  10. # double quotes ) and press the Enter key. Be sure that the Current 
  11. # Working Directory for MPW is set to the directory containing this example.
  12.  
  13. scriptName                = Rsrc Compare Proc
  14. debugScriptName            = {scriptName}.debug
  15.  
  16. sourceFile                = GetRsrcVersion
  17.  
  18. OBJECTS                    = GetRsrcVersion.c.o
  19. ScriptCheckDir            = :::Tools:Released:ScriptCheck 4.0.3:
  20. InstallerCIncDir        = :::DeveloperInterfaces:CIncludes:
  21. InstallerCSrcDir        = :::DeveloperInterfaces:CSources:
  22. InstallerRIncDir        = :::DeveloperInterfaces:RIncludes:
  23. InstallerDebuggerDir    = :::Tools:Released:Installer Debugger 4.0.3:
  24.  
  25. COptions        = -b -r -sym off
  26. LinkOptions        = -mf -sym off
  27.  
  28.  
  29. "{debugScriptName}" ƒ "{scriptName}"
  30.     Duplicate -y "{scriptName}" "{scriptName} w/ Debugger"
  31.     Rez -m "{InstallerDebuggerDir}Installer Debugger.r" -append -o "{scriptName} w/ Debugger"
  32.  
  33. "{scriptName}" ƒƒ "{sourceFile}" "{scriptName}.r"
  34.     set theTime    "'`date -d -s` 12:00:00 PM'"
  35.     Rez "{scriptName}.r" -o "{scriptName}" -t 'kajr' -c 'kajr' -i "{InstallerRIncDir}"
  36.     SetFile -a b -d {theTime} "{scriptName}"
  37.     "{ScriptCheckDir}ScriptCheck" "{scriptName}" -h -d -a
  38.     SetFile -m {theTime} "{scriptName}"
  39.  
  40.  
  41. "{sourceFile}" ƒƒ Makefile "{OBJECTS}"
  42.     Link {LinkOptions} -t rsrc -c RSED -rt infn=128 -m "{sourceFile}" -sg "{sourceFile}" ∂
  43.         "{OBJECTS}" ∂
  44.         -o "{sourceFile}"
  45.         
  46. "{sourceFile}.c.o" ƒ Makefile "{sourceFile}.c"
  47.     SC {COptions} "{sourceFile}.c" -i "{InstallerCIncDir}","{InstallerCSrcDir}","{InstallerRIncDir}"
  48.